package com.cmc.config;

import com.cmc.constant.MqQueueConstant;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author chengmingchao
 */
@Configuration
public class RabbitmqConfiguration {

    @Bean
    public Queue insert_update(){
        return new Queue(MqQueueConstant.INSERT_UPDATE);
    }

    @Bean
    public Queue delete(){
        return new Queue(MqQueueConstant.DELETE);
    }

}
